<%-- 
    Document   : activeDesactiveCompteInter
    Created on : 31 mai 2013, 10:46:34
    Author     : ali
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="EDT.obj.Intervenant"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                
        <title>Activer / désactiver le compte d'intervenant</title>
            <link rel="stylesheet" href="Accueil.css" />
            <link rel="SHORTCUT ICON" href="./edt.jpg" />
    </head>


    <body>    
         
    <section>
      

        

        
         
    <!--<form method='POST' action='PromoNivGradForm.do'> -->
   <%
    String form ="";
    
    ArrayList<Intervenant> intervenant = new ArrayList<Intervenant>();
    
        
        intervenant = EDT.api.API.getIntervenantEtat((String)session.getAttribute("key"));
        
        form += "<form method='POST' action='ActiveDesactiveCptIntrvAct.do' target='section'>";
        form += "<div class='commentaire'>";
        form += "<fieldset>";
        
        
        form +="<legend>    Choisissez un intervenant  :   </legend>";
        form +="Intervenant : <select name='intervenant'>";
        for (Intervenant i : intervenant)
        form +="    <option value='"+i.getId()+"'>"+i.getPrenom()+" "+i.getNom()+" Cmpt "+i.getEtat()+"</option>";
        form +="</select><br/><br/>";
       
        
        form += "Etat : <select name='etat'>";
        form += "<option value='enable'>Activer</option>";
        form += "<option value='disable'>Désactiver</option>";
        form += "</select><br/><br/>";
        
        form += "<input type='hidden' name='key' value='"+session.getAttribute("key")+"'/>";
        
        form +="<input type='submit' value='valider'/><br/>";
        out.println(form);
            
    %>
    
   
    
    
    <html:errors/> 
    
    </fieldset>
    
        
    </div>

    </form>
         
    </section>
    </body>
</html>
